package com.xindacloud.sms.console.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xindacloud.sms.console.result.Result;
import com.xindacloud.sms.console.system.dto.SmsPricingDTO;
import com.xindacloud.sms.console.system.dto.SmsUpdatePricingDTO;
import com.xindacloud.sms.console.system.dto.SmsUserAllowOperatorDTO;
import com.xindacloud.sms.console.system.entity.SmsUserAllowOperator;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 授权给用户的短信通道 服务类
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
public interface ISmsUserAllowOperatorService extends IService<SmsUserAllowOperator> {


    boolean updateUserAllowOperator(Integer userId, List<String> operatorIds, Boolean status);
    
    Result importPriceExcel(MultipartFile file, String agentId,String agentGroup);
    
    void downloadAllPrice(HttpServletRequest request,HttpServletResponse response,Integer userId);

	Result uploadAllPrice(MultipartFile file,Integer userId);

	Result updateBatchPrice(SmsUpdatePricingDTO smsUpdatePricingDTO);


    boolean saveSmsUserAllowOperatorBatch(List<SmsUserAllowOperator> userAllowOperatorList);

    boolean deleteUserAllowOperatorByUserId(Integer userId);

    boolean updateSmsUserAllowBatch(List<SmsUserAllowOperator> userAllowOperatorList);

    List<SmsUserAllowOperator> querySmsUserAllowOperatorList(List<String> operatorIds, Integer userId);

	Result updateUserPrice(SmsUserAllowOperatorDTO smsUserAllowOperatorDTO);


    boolean updateStatusByOperatorIds(List<String> operatorIds, Boolean status);

	Result importUserPriceExcel(MultipartFile file, Integer userId);


}
